package com.lhd.entity.po;

import com.alibaba.excel.annotation.ExcelProperty;

import java.io.Serializable;

/**
 * @Author: liuhd
 * @Date: 2025/03/16
 * @Description: 用户表
 */
public class User implements Serializable {
	/**
	 * 用户id
	 */
	private Integer id;

	@ExcelProperty("phone")
	private String phone;

	@ExcelProperty("username")
	private String username;

	/**
	 * 0女，1男
	 */
	@ExcelProperty("gender")
	private String gender;

	@ExcelProperty("password")
	private String password;

	/**
	 * 工号/学号
	 */
	@ExcelProperty("job_code")
	private String jobCode;

	/**
	 * 0老师，1学生
	 */
	@ExcelProperty("role")
	private Integer role;

	/**
	 * 头像
	 */
	private String avatar;

	@ExcelProperty("email")
	private String email;

	/**
	 * 学院
	 */
	@ExcelProperty("institute")
	private String institute;

	/**
	 * 专业
	 */
	@ExcelProperty("major")
	private String major;

	/**
	 * 行政班级（现实班级）
	 */
	@ExcelProperty("class_name")
	private String className;




	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getJobCode() {
		return jobCode;
	}

	public void setJobCode(String jobCode) {
		this.jobCode = jobCode;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getInstitute() {
		return institute;
	}

	public void setInstitute(String institute) {
		this.institute = institute;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}


	@Override
	public String toString() {
		return "用户id : " + (id == null ? "空" : id) + ",phone : " + (phone == null ? "空" : phone) + ",username : " + (username == null ? "空" : username) + ",0女，1男 : " + (gender == null ? "空" : gender) + ",password : " + (password == null ? "空" : password) + ",工号/学号 : " + (jobCode == null ? "空" : jobCode) + ",0老师，1学生 : " + (role == null ? "空" : role) + ",头像 : " + (avatar == null ? "空" : avatar) + ",email : " + (email == null ? "空" : email) + ",学院 : " + (institute == null ? "空" : institute) + ",专业 : " + (major == null ? "空" : major) + ",行政班级（现实班级） : " + (className == null ? "空" : className) + ",课程id : ";
	}
}